<%@ page language="java" contentType="text/xml; charset=utf-8"%><?xml version="1.0" encoding="UTF-8"?>
<!-- Only the settings with values not equal to defaults are in this file. If you want to see the
full list of available settings, check the amstock_settings.xml file in the amstock folder. -->
<settings>
	<!-- basic charts backgroud defined  -->
  	<margins>2</margins>                                                   
  	<max_series>180</max_series>
	<text_size>12</text_size>
	<redraw>true</redraw>
	<start_on_axis>false</start_on_axis>
	
	<!-- defined the number format -->
  	<number_format>
  		<thousand_separator>,</thousand_separator>  
    	<letters>
       		<letter number="1000">K</letter>
       		<letter number="1000000">M</letter>
      		<letter number="1000000000">B</letter>
    	</letters>      
  	</number_format>
  	
	<!-- set the data resource and defined -->
  	<data_sets> 
    	<data_set did="0">
       		<title>日K线</title>
       		<short>日线</short>
       		<color>7f8da9</color>
       		<file_name>csvStockData.do?stockCode=${stockCode}</file_name>
       		<csv>
         		<reverse>true</reverse>
         		<separator>,</separator>
         		<date_format>YYYY-MM-DD</date_format>
         		<decimal_separator>.</decimal_separator>
         		<columns>
           			<column>date</column>
           			<column>open</column>
           			<column>high</column>
           			<column>low</column>
           			<column>close</column>
           			<column>volume</column>           
         		</columns>
       		</csv>
    	</data_set>
    	
		<data_set did="1">
       		<title>五天均线(攻击线)</title>
       		<short>MA5</short>
       		<color>fac314</color>
       		<file_name>data2.csv</file_name>
       		<compare_list_box selected="true"></compare_list_box>
       		<csv>
         		<reverse>true</reverse>
         		<separator>,</separator>
         		<date_format>YYYY-MM-DD</date_format>
         		<decimal_separator>.</decimal_separator>
         		<columns>
           			<column>date</column>
           			<column>close</column>
         		</columns>
       		</csv>
    	</data_set>    
	</data_sets>

  	<charts>
  		<chart cid="0">
      		<border_alpha>0</border_alpha>
     
      		<grid>
        		<x>
          			<alpha>20</alpha>
          			<dashed>true</dashed>    
        		</x>
        		<y_left>
          			<alpha>20</alpha>
          			<dashed>true</dashed>
        		</y_left>
      		</grid>	
      		
			<!-- x y  value -->
      		<values>
        		<y_left>
          			<bg_alpha>50</bg_alpha>
          			<bg_color>FFFFFF</bg_color>
          			<text_color>000000</text_color>
        		</y_left>
      		</values>	      
			<!-- 标识 -->
      		<legend>
        		<fade_others_to>10</fade_others_to>
        		<show_date>true</show_date>
        		<!-- 水平线中线之上 -->
				<positive_color>FF3232</positive_color>
        		<!-- 水平线中线之下 -->
				<negative_color>008000</negative_color>
        		<graph_on_off>false</graph_on_off>   
        		<show_balloon>true</show_balloon>
				<key_type>square</key_type>     
      		</legend>
			<!-- 蜡烛宽度 -->
      		<column_width>50</column_width>

  			<graphs>
  				<graph gid="0">
  					<type>candlestick</type>
  					<data_sources>
  				  		<open>open</open>
  				 		<high>high</high>
  				  		<low>low</low>
  				  		<close>close</close>
          			</data_sources>
					<!--           
          			<compare_source>close</compare_source>
  					-->
					<cursor_color>002b6d</cursor_color>
					<!-- 阳线定义颜色-->
  					<positive_color>FF3232</positive_color>
          			<!-- 阴线定义颜色-->
					<negative_color>008000</negative_color>
  					<fill_alpha>100</fill_alpha>
  		    		<legend>
            			<date key="true" title="true">
            				<![CDATA[<b>开盘价:{open}</b> <b>最低价:{low}</b> <b>最高价:{high}</b> <b>收盘价:{close}</b>]]>
						</date>
            			<period key="true" title="true">
            				<![CDATA[<b>开盘价:{open}</b> <b>最低价:{low}</b> <b>最高价:{high}</b> <b>收盘价:{close}</b>]]>
						</period>
         	 		</legend>         
  				</graph>  			
  			</graphs>
  		</chart>
		
		<!-- 成交量 -->
	  	<chart cid="1">
  			<height>20</height>
  			<title>成交量</title>  		
      		<border_color>#CCCCCC</border_color>
      		<border_alpha>100</border_alpha>
      		<grid>
        		<y_left>
          			<approx_count>3</approx_count>
        		</y_left>
      		</grid>	

      		<values>
        		<x>
          			<enabled>false</enabled>
        		</x>
      		</values>

      		<legend>
        		<show_date>false</show_date>
      		</legend>
       	
      		<column_width>50</column_width>
  			
			<graphs>
  				<graph gid="0">
  					<type>column</type>
  					<data_sources>
  			  			<close>volume</close>
          			</data_sources>
          			<period_value>average</period_value>
  					<alpha>0</alpha>
  					<color>4D5D5E</color>
				
  					<fill_alpha>70</fill_alpha>
  		    		<legend>
            			<date key="false" title="false"><![CDATA[{close}]]></date>
            			<period key="false" title="false"><![CDATA[{close}]]></period>
          			</legend>         
  				</graph>  			
			</graphs>
  		</chart>  		
	</charts>
  	
	<!-- date 格式 -->
  	<date_formats>
    	<legend>
      		<days>YYYY年MM月DD日</days>
    	</legend>
  	</date_formats>

	<!-- 设置选择器 -->
  	<data_set_selector>
    	<enabled>false</enabled>
  	</data_set_selector>
  
  	<period_selector>
    
    	<button>
      		<bg_color_hover>FEC514</bg_color_hover>
      		<bg_color_selected>DB4C3C</bg_color_selected>
      		<text_color_selected>FFFFFF</text_color_selected>
    	</button>
		
  		<!-- 设置周期 -->
		<periods>		
      		<period type="DD" count="10">10天内</period>
    		<period type="MM" count="1">1月内</period>
    		<period selected="true" type="MM" count="3">3月内</period>
    		<period type="YYYY" count="1">1年内</period>
    		<period type="YTD" count="0">YTD</period>
    		<period type="MAX">MAX</period>
		</periods>
		
		<periods_title>放大</periods_title>
		<custom_period_title>日线周期:</custom_period_title> 
	</period_selector>

  	<header>
    	<enabled>false</enabled>
  	</header>

  	<plot_area>
    	<border_color>b6bece</border_color>
  	</plot_area>

  	<scroller>
    	<graph_data_source>close</graph_data_source>
    	<graph_selected_fill_alpha>100</graph_selected_fill_alpha>
    	<resize_button_color>002b6d</resize_button_color>
    
    	<playback>
      		<enabled>true</enabled>
      		<color>002b6d</color>
      		<color_hover>db4c3c</color_hover>
      		<speed>3</speed>
      		<max_speed>10</max_speed>
      			<speed_indicator>
        		<color>002b6d</color>
      			</speed_indicator>
    	</playback>
  	</scroller>
	
</settings>
